
cc.Class({
    extends: cc.Component,

    properties: {
    },

    // LIFE-CYCLE CALLBACKS:

    onLoad () {
        if(!this.armature){
            this.armature = this.node.getComponent(dragonBones.ArmatureDisplay)
        }
        if(!this.armature){
            console('没有指定动画模块:',this.node.name)
        }
        this.armature.addEventListener(dragonBones.EventObject.COMPLETE,this.onComplete,this)
    },

    onComplete(){
        this.node.destroy();
    },
    // update (dt) {},
});
